; Music de Lotus Esprit Turbo Challenge (1990) (Gremlin Graphics) (Ben Daglish)
; Ripped by Megachur the 11/11/2006

	write "LOTUSETC.BIN"

music_date_rip	equ &0bb6
music_adr	equ &4f09
first_theme	equ 0
last_theme	equ 2

	read "music_header_v1_0.asm"

;4f09
	jp l4fb2        ; init
	jp l5065        ; play
.l4f0f
.music_end
	db #01,#c3,#1a,#4f,#af,#32,#0f,#4f
.l4f1b equ $ + 4
.l4f1a equ $ + 3
	db #c3,#d3,#54,#00,#00,#00,#00,#00
.l4f26 equ $ + 7
.l4f25 equ $ + 6
.l4f24 equ $ + 5
.l4f23 equ $ + 4
.l4f21 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f29 equ $ + 2
.l4f27
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f33 equ $ + 4
.l4f2f
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f3c equ $ + 5
.l4f3b equ $ + 4
.l4f3a equ $ + 3
	db #00,#00,#00,#00,#10,#00,#00,#00
.l4f46 equ $ + 7
.l4f45 equ $ + 6
.l4f44 equ $ + 5
.l4f42 equ $ + 3
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f4a equ $ + 3
.l4f48 equ $ + 1
.l4f47
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f54 equ $ + 5
.l4f50 equ $ + 1
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f5d equ $ + 6
.l4f5c equ $ + 5
.l4f5b equ $ + 4
	db #00,#00,#00,#00,#00,#20,#00,#00
.l4f66 equ $ + 7
.l4f65 equ $ + 6
.l4f63 equ $ + 4
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f6b equ $ + 4
.l4f69 equ $ + 2
.l4f68 equ $ + 1
.l4f67
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f75 equ $ + 6
.l4f71 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4f7d equ $ + 6
.l4f7c equ $ + 5
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4fae equ $ + 7
.l4fad equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4fb1 equ $ + 2
.l4fb0 equ $ + 1
.l4faf
	db #ff,#00,#00
;
.init_music
.l4fb2
;
	push af
	call l54d3
	pop af
	ld l,a
	add a
	add l
	add a
	ld hl,l5d59
	add l
	ld l,a
	jr nc,l4fc3
	inc h
.l4fc3
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	push hl
	ld hl,l5d59
	add hl,de
	ld (l4f1b),hl
	pop hl
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	push hl
	ld hl,l5d59
	add hl,de
	ld (l4f3c),hl
	pop hl
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld hl,l5d59
	add hl,de
	ld (l4f5d),hl
	xor a
	ld (l4f24),a
	ld (l4f45),a
	ld (l4f66),a
	ld (l4f29),a
	ld (l4f4a),a
	ld (l4f6b),a
	ld (l4f2f),a
	ld (l4f50),a
	ld (l4f71),a
	ld (l4f33),a
	ld (l4f54),a
	ld (l4f75),a
	ld (l4f3a),a
	ld (l4f5b),a
	ld (l4f7c),a
	cpl
	ld (l4f25),a
	ld (l4f46),a
	ld (l4f67),a
	ld a,#01
	ld (l4f23),a
	ld (l4f44),a
	ld (l4f65),a
	ld (l4f26),a
	ld (l4f47),a
	ld (l4f68),a
	ld hl,l4f7d
	ld bc,#030c
.l503a
	xor a
.l503b
	ld (hl),a
	inc hl
	add c
	ld (hl),a
	inc hl
	add c
	cp #c0
	jr nz,l503b
	djnz l503a
	ld hl,l5e5a
	ld (l4f21),hl
	ld (l4f42),hl
	ld (l4f63),hl
	ld a,#ff
	ld (l4f27),a
	ld (l4f48),a
	ld (l4f69),a
	ld (l4f0f),a
	ld (l4faf),a
	ret
;
.play_music
.l5065
;
	call l5515
	ld a,(l4f0f)
	and a
	ret z
	ld a,(l4f27)
	ld hl,l4f48
	or (hl)
	ld hl,l4f69
	or (hl)
	ld (l4f0f),a
	jr nz,l508f
	xor a
	ld (l4f0f),a
	ld a,(l53a7)
	and #3f
	cp #3f
	ret z
	ld a,#01
	ld (l4f0f),a
	ret
.l508f
	ld iy,l4f1a
	ld ix,l53a8
	call l50ad
	ld iy,l4f3b
	ld ix,l53c0
	call l50ad
	ld iy,l4f5c
	ld ix,l53d8
.l50ad
	call l527f
	call l530f
	ld a,(iy+#0b)
	and a
	jp z,l5152
.l50ba
	dec (iy+#09)
	jr z,l50d2
	ld a,(iy+#03)
	ld (iy+#05),a
	ld a,(iy+#04)
	ld (iy+#06),a
	ld (iy+#0b),#00
	jp l5152
.l50d2
	ld (iy+#09),#01
	ld l,(iy+#01)
	ld h,(iy+#02)
.l50dc
	ld a,(hl)
	cp #80
	jr c,l512f
	cp #fd
	jr nz,l50eb
	inc hl
	inc hl
	inc hl
	jp l50dc
.l50eb
	cp #fc
	jr nz,l50f3
	inc hl
	jp l50dc
.l50f3
	cp #fe
	jr nz,l5100
	inc hl
	ld a,(hl)
	ld (iy+#0a),a
	inc hl
	jp l50dc
.l5100
	cp #ff
	jr nz,l5109
	xor a
	ld (iy+#0d),a
	ret
.l5109
	cp #c0
	jr nc,l5116
	and #1f
	ld (iy+#09),a
	inc hl
	jp l50dc
.l5116
	and #0f
	add (iy+#00)
	ld de,l4f7d
	add e
	ld e,a
	jr nc,l5123
	inc d
.l5123
	inc hl
	ld a,(hl)
	inc hl
	ld c,a
	add a
	add c
	add a
	add a
	ld (de),a
	jp l50dc
.l512f
	ld (iy+#0b),#00
	inc hl
	ld (iy+#01),l
	ld (iy+#02),h
	add a
	ld c,a
	ld b,#00
	ld hl,l5d19
	add hl,bc
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld hl,l5829
	add hl,de
	ex de,hl
	ld (iy+#03),e
	ld (iy+#04),d
	jr l5158
.l5152
	ld e,(iy+#05)
	ld d,(iy+#06)
.l5158
	dec (iy+#0c)
	jr z,l516a
	ld a,(de)
	cp #80
	call nc,l520e
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.l516a
	ld a,(de)
	cp #80
	jr c,l517b
	call l520e
	ld a,(iy+#0b)
	and a
	jr z,l516a
	jp l50ba
.l517b
	cp #7f
	jp z,l5201
	cp #7e
	jr nz,l518d
	inc de
	ld a,(de)
	ld l,a
	inc de
	ld a,(de)
	ld h,a
	jp l51d3
.l518d
	add (iy+#0a)
	add #0c
	ld (iy+#0e),a
	ld hl,l5783
	add a
	ld c,a
	ld b,#00
	add hl,bc
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
	ld a,(iy+#15)
	ld (iy+#19),a
	and a
	jr z,l51d3
	ld a,(iy+#16)
	ld (iy+#1a),a
	ld a,(iy+#17)
	ld (iy+#1b),a
	ld a,(iy+#18)
	add (iy+#0e)
	push hl
	ld hl,l5783
	add a
	ld c,a
	add hl,bc
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
	pop bc
	and a
	sbc hl,bc
	ld (iy+#1e),l
	ld (iy+#1f),h
	ld h,b
	ld l,c
.l51d3
	ld a,(iy+#0f)
	or #c0
	ld (iy+#14),a
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld c,a
	ld (iy+#05),e
	ld (iy+#06),d
	ld e,(iy+#07)
	ld a,(iy+#08)
	ld b,(iy+#20)
	ld hy,a
	ld ly,e
	bit 7,(ix+#15)
	ret nz
	ld a,b
	ld (l4fad),a
	jp l53f1
.l5201
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.l520e
	ld a,(de)
	cp #90
	jr nc,l522c
	and #0f
	add (iy+#00)
	ld c,a
	ld b,#00
	ld hl,l4f7d
	add hl,bc
	ld c,(hl)
	ld hl,l5e5a
	add hl,bc
	ld (iy+#07),l
	ld (iy+#08),h
	inc de
	ret
.l522c
	cp #ff
	jr nz,l5235
	ld (iy+#0b),#ff
	ret
.l5235
	cp #c0
	jr nc,l5240
	and #0f
	ld (iy+#0f),a
	inc de
	ret
.l5240
	inc de
	cp #c1
	jr nz,l524a
	ld (iy+#15),#00
	ret
.l524a
	cp #c0
	jr nz,l5262
	ld (iy+#15),#ff
	ld a,(de)
	inc de
	ld (iy+#16),a
	ld a,(de)
	inc de
	ld (iy+#17),a
	ld a,(de)
	inc de
	ld (iy+#18),a
	ret
.l5262
	cp #fc
	jr nz,l526b
	ld (iy+#20),#00
	ret
.l526b
	cp #fd
	jr nz,l527e
	ld (iy+#20),#ff
	ld a,(de)
	inc de
	ld (l4fae),a
	ld a,(de)
	inc de
	ld (l4fb0),a
	ret
.l527e
	ret
.l527f
	bit 7,(ix+#15)
	ret nz
	ld a,(iy+#14)
	bit 7,a
	ret z
	and #3f
	jr nz,l5293
	res 7,(iy+#14)
	ret
.l5293
	ld d,#07
	bit 6,(iy+#14)
	jr nz,l52c7
	dec (iy+#12)
	ret nz
	dec (iy+#13)
	jp z,l52c7
	ld l,(iy+#10)
	ld h,(iy+#11)
	inc l
	ld (iy+#10),l
	jp nz,l52b6
	inc h
	ld (iy+#11),h
.l52b6
	ld a,(hl)
	and d
	ld (iy+#12),a
	ld a,(hl)
	rrca
	rrca
	rrca
	and #1f
	add (iy+#0e)
	jp l52fc
.l52c7
	ld hl,l5722
	ld a,(iy+#14)
	add a
	add a
	add a
	ld e,a
	add hl,de
	bit 7,(hl)
	jr nz,l52e1
	bit 6,(iy+#14)
	jr nz,l52e1
	ld (iy+#13),#01
	ret
.l52e1
	res 6,(iy+#14)
	ld a,(hl)
	rrca
	rrca
	rrca
	and d
	ld (iy+#12),a
	ld a,(hl)
	and d
	inc a
	ld (iy+#13),a
	ld (iy+#10),l
	ld (iy+#11),h
	ld a,(iy+#0e)
.l52fc
	add a
	ld hl,l5783
	add l
	ld l,a
	jr nc,l5305
	inc h
.l5305
	ld a,(hl)
	inc hl
	ld (ix+#03),a
	ld a,(hl)
	ld (ix+#04),a
	ret
.l530f
	ld a,(iy+#19)
	and a
	ret z
	jp p,l5370
	ld d,#00
	ld e,(iy+#1b)
	ld hl,#0000
	ld c,(iy+#1e)
	ld a,(iy+#1f)
	and a
	jp m,l5347
	ld b,#10
.l532b
	rl c
	rla
	adc hl,hl
	sbc hl,de
	jr nc,l5335
	add hl,de
.l5335
	ccf
	djnz l532b
	rl c
	rla
	ld (iy+#1c),c
	ld (iy+#1d),a
	ld (iy+#19),#01
	jr l5370
.l5347
	cpl
	ld b,a
	ld a,c
	cpl
	ld c,a
	inc bc
	ld a,b
	ld b,#10
.l5350
	rl c
	rla
	adc hl,hl
	sbc hl,de
	jr nc,l535a
	add hl,de
.l535a
	ccf
	djnz l5350
	rl c
	rla
	cpl
	ld b,a
	ld a,c
	cpl
	ld c,a
	inc bc
	ld (iy+#1c),c
	ld (iy+#1d),b
	ld (iy+#19),#01
.l5370
	ld a,(iy+#1a)
	and a
	jr z,l537a
	dec (iy+#1a)
	ret
.l537a
	ld a,(iy+#1b)
	and a
	jr z,l5396
	dec (iy+#1b)
	ld a,(iy+#1c)
	add (ix+#16)
	ld (ix+#16),a
	ld a,(iy+#1d)
	adc (ix+#17)
	ld (ix+#17),a
	ret
.l5396
	ld a,(iy+#1e)
	ld (ix+#16),a
	ld a,(iy+#1f)
	ld (ix+#17),a
	ld (iy+#19),#00
	ret
.l53ad equ $ + 6
.l53ab equ $ + 4
.l53a8 equ $ + 1
.l53a7
	db #3f,#fe,#f7,#09,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53bd equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53c5 equ $ + 6
.l53c3 equ $ + 4
.l53c0 equ $ + 1
	db #00,#fd,#ef,#12,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53d5 equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53dd equ $ + 6
.l53db equ $ + 4
.l53d8 equ $ + 1
	db #00,#fb,#df,#24,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53ed equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.l53f0 equ $ + 1
	db #00,#00
.l53f1
	ld a,ly
	ld (ix+#13),a
	ld a,hy
	ld (ix+#14),a
	ld (ix+#03),l
	ld (ix+#04),h
	ld (ix+#06),c
	ld a,(iy+#05)
	ld (ix+#07),a
	cp #ff
	jr z,l545e
	ld a,(iy+#06)
	ld (ix+#0e),a
	ld a,(iy+#07)
	ld (ix+#0d),a
	ld d,(iy+#09)
	ld (ix+#0c),d
	ld e,(iy+#0a)
	ld (ix+#0b),e
	ld a,(iy+#08)
	and #7f
	ld (ix+#08),a
	ld hl,#0000
	bit 4,a
	jr z,l5436
	add hl,de
.l5436
	add hl,hl
	bit 3,a
	jr z,l543c
	add hl,de
.l543c
	add hl,hl
	bit 2,a
	jr z,l5442
	add hl,de
.l5442
	add hl,hl
	bit 1,a
	jr z,l5448
	add hl,de
.l5448
	sra d
	rr e
	and #01
	jr z,l5451
	add hl,de
.l5451
	ld a,h
	cpl
	ld h,a
	ld a,l
	cpl
	ld l,a
	inc hl
	ld (ix+#0f),l
	ld (ix+#10),h
.l545e
	xor a
	ld (ix+#09),a
	ld (ix+#0a),a
	ld (ix+#16),a
	ld (ix+#17),a
	ld a,(l53a7)
	or (ix+#02)
	ld c,(iy+#0b)
	ld (ix+#15),c
	bit 0,c
	jr z,l547e
	and (ix+#00)
.l547e
	push af
	ld a,(l4fad)
	and a
	jr nz,l548f
	pop af
	bit 1,c
	jr z,l54a3
	and (ix+#01)
	jr l54a3
.l548f
	xor a
	ld (l4fad),a
	ld a,(ix+#01)
	ld (l4fb1),a
	ld a,(l4fae)
	ld (l4faf),a
	pop af
	and (ix+#01)
.l54a3
	ld (l53a7),a
	bit 2,c
	jr nz,l54b4
	ld hl,l5661
	ld (ix+#11),l
	ld (ix+#12),h
	ret
.l54b4
	call l5759
	ld a,(iy+#00)
	ld c,#0d
	call l5770
	ld a,(iy+#04)
	ld c,#0b
	call l5770
	inc c
	xor a
	call l5770
	ld (ix+#05),#ff
	jp l5765
;
.stop_music
.l54d3
;
	call l5759
	ld c,#07
	ld a,(l53a7)
	or #3f
	ld (l53a7),a
	call l5770
	xor a
	ld c,#08
	call l5770
	inc c
	call l5770
	inc c
	call l5770
	ld a,#01
	inc c
	call l5770
	inc c
	xor a
	call l5770
	inc c
	call l5770
	ld (l53bd),a
	ld (l53d5),a
	ld (l53ed),a
	ld (l53ad),a
	ld (l53c5),a
	ld (l53dd),a
	jp l5765
.l5515
	ld a,(l53a7)
	and #3f
	cp #3f
	ret z
	ld ix,l53a8
	call l562f
	ld ix,l53c0
	call l562f
	ld ix,l53d8
	call l562f
	ld hl,l4faf
	ld a,(hl)
	cp #ff
	jr z,l5547
	dec (hl)
	jp p,l5547
	ld a,(l4fb1)
	cpl
	ld hl,l53a7
	or (hl)
	ld (hl),a
.l5547
	call l5759
	ld c,#07
	ld a,(l53a7)
	call l5770
	ld ix,l53a8
	ld c,#00
	ld hl,(l53ab)
	ld a,(ix+#09)
	add l
	ld l,a
	ld a,(ix+#0a)
	adc h
	ld h,a
	ld a,(ix+#16)
	add l
	ld l,a
	ld a,(ix+#17)
	adc h
	sra a
	rr l
	push af
	ld a,l
	call l5761
	bit 1,(ix+#15)
	jp z,l5581
	ld (l53f0),a
.l5581
	call l5770
	inc c
	pop af
	call l5770
	inc c
	ld hl,(l53c3)
	ld a,(ix+#21)
	add l
	ld l,a
	ld a,(ix+#22)
	adc h
	ld h,a
	ld a,(ix+#2e)
	add l
	ld l,a
	ld a,(ix+#2f)
	adc h
	sra a
	rr l
	push af
	ld a,l
	call l5761
	bit 1,(ix+#2d)
	jp z,l55b3
	ld (l53f0),a
.l55b3
	call l5770
	inc c
	pop af
	call l5770
	inc c
	ld hl,(l53db)
	ld a,(ix+#39)
	add l
	ld l,a
	ld a,(ix+#3a)
	adc h
	ld h,a
	ld a,(ix+#46)
	add l
	ld l,a
	ld a,(ix+#47)
	adc h
	sra a
	rr l
	push af
	ld a,l
	call l5761
	bit 1,(ix+#45)
	jp z,l55e5
	ld (l53f0),a
.l55e5
	call l5770
	inc c
	pop af
	call l5770
	inc c
	ld a,(l4faf)
	cp #ff
	jr z,l55fb
	ld a,(l4fb0)
	jp l55fe
.l55fb
	ld a,(l53f0)
.l55fe
	rrca
	rrca
	rrca
	call l5770
	ld c,#08
	ld a,(l53ad)
	srl a
	srl a
	srl a
	call l5770
	inc c
	ld a,(l53c5)
	srl a
	srl a
	srl a
	call l5770
	inc c
	ld a,(l53dd)
	srl a
	srl a
	srl a
	call l5770
	jp l5765
.l562f
	ld a,(l53a7)
	and (ix+#02)
	cp (ix+#02)
	ret z
	ld a,(ix+#13)
	ld ly,a
	ld a,(ix+#14)
	ld hy,a
	ld a,(ix+#06)
	and a
	jr z,l5650
	cp #ff
	jr z,l5650
	dec (ix+#06)
.l5650
	call l56d7
	bit 2,(iy+#0b)
	jp nz,l56d0
	ld l,(ix+#11)
	ld h,(ix+#12)
	jp (hl)
.l5661
	ld a,(ix+#05)
	add (iy+#00)
	cp (iy+#04)
	jr nc,l5670
	ld (ix+#05),a
	ret
.l5670
	ld a,(iy+#04)
	ld (ix+#05),a
	ld hl,l5680
	ld (ix+#11),l
	ld (ix+#12),h
	ret
.l5680
	ld a,(ix+#05)
	add (iy+#01)
	jp m,l5692
	cp (iy+#02)
	jr c,l5692
	ld (ix+#05),a
	ret
.l5692
	ld a,(iy+#02)
	ld (ix+#05),a
	ld hl,l56a2
	ld (ix+#11),l
	ld (ix+#12),h
	ret
.l56a2
	ld a,(ix+#06)
	and a
	ret nz
	ld hl,l56b1
	ld (ix+#11),l
	ld (ix+#12),h
	ret
.l56b1
	ld a,(ix+#05)
	add (iy+#03)
	jp m,l56be
	ld (ix+#05),a
	ret
.l56be
	ld (ix+#05),#00
	ld a,(l53a7)
	or (ix+#02)
	ld (l53a7),a
	res 7,(ix+#15)
	ret
.l56d0
	ld a,(ix+#06)
	and a
	ret nz
	jr l56be
.l56d7
	ld a,(ix+#07)
	and a
	jr z,l5714
	cp #ff
	ret z
	ld a,(ix+#0d)
	add (ix+#09)
	ld (ix+#09),a
	ld a,(ix+#0e)
	adc (ix+#0a)
	ld (ix+#0a),a
	ld a,(ix+#0d)
	add (ix+#0f)
	ld (ix+#0f),a
	ld a,(ix+#0e)
	adc (ix+#10)
	ld (ix+#10),a
	dec (ix+#07)
	ret nz
	ld a,(ix+#0f)
	ld (ix+#09),a
	ld a,(ix+#10)
	ld (ix+#0a),a
.l5714
	ld l,(ix+#09)
	ld h,(ix+#0a)
	ld c,(ix+#0b)
	ld b,(ix+#0c)
	add hl,bc
.l5722 equ $ + 1
	ld (ix+#09),l
	ld (ix+#0a),h
	dec (ix+#08)
	ret nz
	ld a,(iy+#08)
	ld l,a
	and #7f
	ret z
	bit 7,l
	jr z,l5748
	and #7f
	ld (ix+#08),a
	ld a,(ix+#0f)
	ld (ix+#09),a
	ld a,(ix+#10)
	ld (ix+#0a),a
	ret
.l5748
	ld (ix+#08),a
	ld a,c
	cpl
	ld c,a
	ld a,b
	cpl
	ld b,a
	inc bc
	ld (ix+#0b),c
	ld (ix+#0c),b
	ret
.l5759
	ld bc,#f782
	out (c),c
	ld de,#c000
.l5761
	ld hl,#f680
	ret
.l5765
	ld bc,#f40e
	out (c),c
	ld b,h
	out (c),d
	out (c),e
	ret
.l5770
	ld b,#f4
	out (c),c
	ld b,h
	out (c),d
	out (c),e
	ld b,#f4
	out (c),a
	ld b,h
	out (c),l
	out (c),e
	ret
.l5783
	dw #0e1e,#0d52,#0c94,#0be4
	dw #0b36,#0a94,#09fe,#096e
	dw #08e6,#0866,#07f0,#077d
	dw #070f,#06a9,#064a,#05f2
	dw #059b,#054a,#04ff,#04b7
	dw #0474,#0433,#03f7,#03c0
	dw #0389,#0355,#0325,#02f9
	dw #02ce,#02a6,#0280,#025c
	dw #023b,#021a,#01fc,#01e0
	dw #01c4,#01ab,#0193,#017c
	dw #0167,#0153,#0140,#012e
	dw #011d,#010d,#00fe,#00f0
	dw #00e2,#00d6,#00ca,#00be
	dw #00b3,#00a9,#00a0,#0097
	dw #008e,#0086,#007f,#0078
	dw #0071,#006b,#0065,#005f
	dw #005a,#0055,#0050,#004b
	dw #0047,#0043,#003f,#003c
	dw #0038,#0035,#0032,#002f
	dw #002d,#002a,#0028,#0026
	dw #0024,#0022,#0020
.l5829
	db #84,#06
	db #10,#06,#08,#04,#08,#01,#10,#04
	db #08,#06,#10,#06,#10,#04,#08,#01
	db #10,#04,#10,#ff,#84,#06,#10,#81
	db #0a,#08,#84,#04,#08,#01,#10,#81
	db #0a,#08,#84,#06,#10,#06,#08,#81
	db #0a,#08,#84,#04,#08,#01,#10,#81
	db #0a,#08,#7f,#08,#ff,#81,#0d,#10
	db #80,#06,#08,#81,#0d,#10,#80,#06
	db #08,#81,#0b,#10,#80,#06,#08,#81
	db #0b,#04,#0d,#04,#0a,#08,#0b,#08
	db #0d,#04,#0b,#04,#0b,#08,#06,#08
	db #06,#04,#06,#04,#ff,#80,#06,#10
	db #81,#0b,#08,#80,#06,#10,#06,#08
	db #81,#0b,#10,#80,#06,#08,#06,#08
	db #81,#0b,#08,#80,#06,#10,#06,#08
	db #81,#0b,#10,#ff,#87,#12,#10,#10
	db #08,#12,#08,#14,#08,#15,#10,#1a
	db #10,#19,#10,#15,#10,#14,#08,#15
	db #08,#17,#08,#12,#10,#17,#08,#15
	db #08,#17,#08,#19,#10,#17,#10,#15
	db #10,#14,#10,#15,#08,#17,#08,#15
	db #08,#ff,#86,#91,#15,#80,#17,#80
	db #90,#ff,#86,#91,#1a,#80,#1c,#80
	db #90,#ff,#81,#06,#08,#80,#06,#08
	db #06,#08,#81,#06,#08,#80,#06,#08
	db #06,#08,#81,#06,#08,#80,#06,#08
	db #06,#08,#81,#06,#08,#80,#06,#08
	db #06,#08,#81,#06,#08,#80,#06,#08
	db #81,#06,#08,#80,#06,#08,#ff,#87
	db #1e,#10,#1c,#08,#19,#08,#1c,#08
	db #1e,#10,#21,#10,#1e,#10,#1c,#10
	db #1a,#08,#19,#08,#17,#08,#1e,#10
	db #20,#08,#21,#08,#20,#08,#1e,#10
	db #1c,#10,#19,#10,#1c,#10,#21,#08
	db #20,#08,#21,#08,#ff,#81,#06,#08
	db #80,#06,#08,#06,#08,#81,#06,#08
	db #80,#06,#08,#06,#08,#81,#06,#08
	db #80,#06,#08,#06,#08,#81,#06,#08
	db #80,#06,#08,#06,#08,#81,#06,#08
	db #06,#04,#06,#04,#06,#08,#80,#06
	db #04,#81,#06,#04,#ff,#87,#1e,#10
	db #1c,#08,#19,#08,#1c,#08,#1e,#10
	db #21,#10,#1e,#10,#1c,#10,#19,#08
	db #1c,#08,#1d,#08,#1e,#10,#1c,#08
	db #19,#08,#1c,#08,#1e,#10,#21,#10
	db #1e,#10,#1c,#10,#21,#08,#20,#08
	db #21,#08,#ff,#86,#91,#12,#80,#12
	db #80,#90,#ff,#7f,#80,#ff,#84,#08
	db #08,#08,#08,#0b,#08,#08,#08,#0d
	db #08,#08,#08,#0e,#08,#0f,#08,#08
	db #08,#08,#08,#0b,#08,#08,#08,#06
	db #08,#03,#08,#06,#08,#07,#08,#ff
	db #80,#06,#10,#81,#0b,#10,#80,#06
	db #08,#06,#08,#81,#0b,#10,#80,#06
	db #08,#06,#08,#81,#0b,#08,#80,#06
	db #10,#06,#08,#81,#0b,#10,#ff,#88
	db #91,#20,#80,#1e,#80,#19,#80,#1c
	db #40,#1e,#40,#ff,#85,#96,#14,#10
	db #0f,#04,#7f,#04,#0f,#08,#12,#04
	db #7f,#04,#14,#08,#7f,#08,#14,#18
	db #11,#04,#7f,#04,#11,#08,#12,#04
	db #7f,#04,#17,#08,#7f,#08,#14,#18
	db #0f,#04,#7f,#04,#0f,#08,#12,#04
	db #7f,#04,#12,#08,#7f,#08,#12,#18
	db #11,#04,#7f,#04,#12,#08,#12,#04
	db #7f,#04,#13,#08,#7f,#08,#14,#08
	db #90,#ff,#85,#96,#20,#08,#1e,#08
	db #20,#08,#1e,#10,#20,#0c,#7f,#04
	db #23,#08,#23,#08,#23,#08,#23,#08
	db #23,#10,#22,#08,#20,#0c,#7f,#04
	db #23,#08,#23,#08,#23,#08,#23,#10
	db #22,#08,#20,#08,#1e,#08,#1e,#08
	db #1b,#08,#23,#08,#20,#28,#90,#ff
	db #85,#96,#20,#08,#1e,#08,#20,#08
	db #1e,#10,#20,#0c,#7f,#04,#23,#08
	db #23,#08,#23,#08,#23,#08,#23,#10
	db #22,#08,#20,#0c,#7f,#04,#23,#08
	db #23,#08,#23,#08,#23,#10,#22,#08
	db #20,#08,#1e,#08,#1e,#08,#1b,#08
	db #23,#08,#20,#08,#1e,#08,#19,#08
	db #1b,#08,#1e,#08,#90,#ff,#7f,#80
	db #ff,#84,#06,#08,#06,#08,#06,#08
	db #04,#10,#06,#10,#04,#08,#02,#10
	db #06,#10,#01,#10,#04,#10,#84,#06
	db #08,#06,#08,#06,#08,#04,#10,#06
	db #10,#04,#08,#02,#10,#06,#10,#01
	db #10,#09,#10,#ff,#83,#12,#40,#7f
	db #40,#81,#7f,#50,#0d,#18,#0d,#08
	db #0d,#08,#0b,#04,#0b,#04,#ff,#80
	db #06,#10,#81,#0a,#10,#80,#06,#08
	db #06,#08,#81,#0a,#10,#80,#06,#10
	db #81,#0a,#10,#80,#06,#08,#06,#08
	db #81,#0a,#10,#80,#06,#10,#81,#0a
	db #10,#80,#06,#08,#06,#08,#81,#0a
	db #10,#80,#06,#10,#81,#0d,#10,#80
	db #06,#08,#81,#0d,#08,#0d,#08,#01
	db #04,#01,#04,#ff,#85,#96,#7f,#08
	db #1c,#08,#1e,#08,#20,#08,#21,#08
	db #23,#08,#21,#08,#1e,#18,#19,#10
	db #1c,#10,#1e,#18,#21,#08,#20,#08
	db #21,#08,#20,#08,#1e,#08,#1c,#08
	db #1e,#10,#1c,#08,#25,#10,#23,#08
	db #21,#08,#20,#08,#1e,#08,#90,#ff
	db #85,#12,#10,#12,#08,#0f,#04,#7f
	db #04,#12,#04,#7f,#04,#12,#10,#0e
	db #28,#10,#20,#12,#10,#12,#08,#0f
	db #04,#7f,#04,#12,#04,#7f,#04,#12
	db #10,#0e,#28,#0d,#20,#ff,#85,#96
	db #7f,#08,#1c,#08,#1e,#08,#20,#08
	db #21,#08,#23,#08,#21,#08,#1e,#10
	db #23,#08,#21,#08,#23,#08,#24,#08
	db #23,#08,#21,#10,#1e,#08,#21,#08
	db #20,#08,#21,#08,#20,#08,#1e,#08
	db #1c,#08,#1e,#10,#1c,#08,#25,#10
	db #23,#08,#21,#08,#20,#08,#1e,#08
	db #90,#ff,#85,#0b,#10,#0b,#04,#09
	db #04,#0b,#28,#0d,#10,#0d,#04,#0b
	db #04,#0d,#28,#0e,#10,#0e,#04,#0d
	db #04,#0e,#28,#10,#10,#10,#04,#0e
	db #04,#10,#28,#ff,#81,#06,#10,#06
	db #10,#06,#08,#80,#06,#08,#81,#06
	db #10,#06,#10,#06,#10,#06,#08,#80
	db #06,#08,#81,#06,#10,#06,#10,#06
	db #10,#06,#08,#80,#06,#08,#81,#06
	db #10,#06,#10,#06,#10,#80,#06,#08
	db #81,#0d,#08,#0d,#08,#01,#04,#01
	db #04,#ff,#81,#0d,#04,#0d,#04,#0d
	db #08,#0b,#08,#0a,#08,#08,#04,#08
	db #04,#08,#08,#06,#04,#06,#04,#06
	db #08,#7f,#38,#0d,#08,#0d,#04,#0d
	db #04,#0d,#08,#0b,#08,#0a,#08,#0a
	db #04,#0a,#04,#0a,#08,#08,#04,#08
	db #04,#08,#18,#0f,#08,#0d,#04,#0d
	db #08,#0b,#04,#0b,#08,#0a,#08,#85
	db #96,#12,#08,#90,#ff,#85,#96,#27
	db #08,#27,#04,#27,#04,#27,#08,#27
	db #08,#27,#04,#27,#04,#27,#08,#27
	db #08,#27,#04,#27,#04,#27,#08,#27
	db #08,#27,#04,#27,#04,#27,#08,#27
	db #08,#27,#04,#27,#04,#27,#08,#27
	db #08,#27,#08,#27,#04,#27,#04,#27
	db #08,#27,#08,#27,#04,#27,#04,#27
	db #08,#2c,#08,#2c,#04,#2c,#04,#2c
	db #08,#2c,#08,#2c,#04,#2c,#04,#2c
	db #08,#2c,#08,#2c,#04,#2c,#04,#2c
	db #04,#2c,#04,#2c,#04,#2c,#04,#90
	db #ff,#85,#96,#20,#08,#22,#04,#23
	db #04,#22,#08,#20,#08,#22,#04,#23
	db #04,#22,#08,#20,#08,#22,#04,#23
	db #04,#22,#08,#20,#08,#22,#04,#23
	db #04,#22,#08,#20,#08,#23,#04,#22
	db #04,#23,#08,#20,#08,#20,#08,#23
	db #04,#22,#04,#23,#08,#20,#08,#25
	db #04,#23,#04,#25,#08,#20,#08,#27
	db #04,#25,#04,#27,#08,#20,#08,#27
	db #04,#28,#04,#27,#08,#20,#08,#2a
	db #04,#2c,#04,#2a,#08,#2c,#04,#2c
.l5d19 equ $ + 6
	db #04,#90,#ff,#7f,#40,#ff,#00,#00
	db #16,#00,#37,#00,#5f,#00,#7e,#00
	db #ac,#00,#b4,#00,#bc,#00,#e9,#00
	db #17,#01,#47,#01,#75,#01,#7d,#01
	db #80,#01,#a2,#01,#c1,#01,#ce,#01
	db #14,#02,#4a,#02,#88,#02,#8b,#02
	db #b6,#02,#c9,#02,#06,#03,#3a,#03
	db #60,#03,#9c,#03,#be,#03,#f4,#03
.l5d59 equ $ + 6
	db #37,#04,#93,#04,#ed,#04,#12,#00
	db #28,#00,#3f,#00,#58,#00,#68,#00
	db #7a,#00,#8a,#00,#97,#00,#b0,#00
	db #fe,#06,#84,#14,#1b,#1b,#14,#14
	db #14,#16,#16,#1b,#1b,#fe,#08,#14
	db #14,#fe,#06,#1b,#1b,#ff,#fe,#fa
	db #15,#83,#16,#19,#19,#17,#17,#16
	db #17,#17,#19,#19,#fe,#fc,#17,#17
	db #fe,#fa,#1e,#1d,#ff,#fe,#fa,#15
	db #84,#1f,#17,#17,#1a,#1a,#18,#18
	db #1c,#18,#18,#1a,#1a,#fe,#fc,#18
	db #18,#1a,#1a,#fe,#fa,#ff,#88,#00
	db #84,#01,#84,#07,#07,#09,#00,#00
	db #86,#01,#85,#07,#09,#ff,#0c,#02
	db #86,#03,#04,#04,#08,#08,#0a,#0c
	db #02,#04,#04,#04,#08,#08,#0a,#ff
	db #84,#0c,#04,#04,#05,#83,#06,#0b
	db #0c,#0c,#05,#05,#83,#06,#0b,#ff
	db #fe,#06,#9a,#0d,#fe,#09,#88,#0d
	db #fe,#06,#8a,#0d,#ff,#fe,#06,#84
	db #0e,#84,#10,#11,#12,#11,#12,#10
	db #10,#0e,#0e,#fe,#09,#84,#10,#fe
	db #06,#84,#10,#0e,#0e,#ff,#fe,#06
	db #82,#0f,#fe,#12,#0f,#fe,#06,#0f
	db #fe,#12,#0f,#0f,#fe,#06,#0d,#0d
	db #fe,#09,#0f,#fe,#15,#0f,#fe,#06
	db #11,#12,#11,#12,#0d,#0d,#ff,#8a
	db #01,#21,#00,#00,#00,#00,#00,#8a
	db #01,#19,#00,#00,#00,#00,#00,#8a
	db #21,#21,#00,#00,#00,#00,#00,#8a
	db #01,#51,#00,#00,#00,#00,#00,#8a
	db #01,#39,#00,#00,#00,#00,#00,#8a
.l5e5a equ $ + 7
	db #01,#61,#00,#00,#00,#00,#00,#7f
	db #ec,#40,#f8,#7f,#29,#00,#64,#00
	db #00,#00,#01,#7f,#80,#40,#f8,#7f
	db #29,#00,#64,#00,#00,#00,#03,#7f
	db #f2,#04,#ff,#69,#ff,#00,#00,#00
	db #00,#00,#02,#7f,#ff,#59,#ff,#7f
	db #00,#00,#00,#74,#00,#12,#05,#7f
	db #fe,#00,#ff,#7f,#07,#00,#00,#87
	db #00,#07,#01,#76,#ff,#00,#ff,#76
	db #00,#00,#00,#02,#00,#04,#01,#08
	db #ff,#6e,#ff,#6e,#1a,#00,#00,#86
	db #00,#02,#01,#20,#fc,#00,#ff,#7f
	db #00,#00,#02,#01,#00,#0a,#01,#08
	db #ff,#5a,#ff,#5a,#1a,#00,#00,#86
	db #00,#02,#01,#5d,#07,#b8,#02,#00
	db #01,#18,#01,#72,#0b,#fa,#01,#18
	db #01,#40,#01,#18,#01,#18,#01,#06
	db #00,#06,#00,#06,#00,#32,#00,#32
	db #00,#32,#00,#64,#00,#32,#00,#32
	db #00,#32,#00,#ff,#ff,#00,#ff,#ff
	db #01,#ff,#ff,#02,#ff,#ff,#ff,#00
	db #00,#0f,#1c,#48,#03,#0f,#1c,#90
	db #06,#0f,#1c,#d8,#09,#0f,#1c,#20
	db #0d,#0f,#1c,#68,#10,#0d,#18,#d8
	db #12,#0d,#18,#48,#15,#0d,#18,#b8
	db #17,#0d,#18,#28,#1a,#0d,#18,#98
	db #1c,#0c,#14,#78,#1e,#0c,#14,#58
	db #20,#0c,#14,#38,#22,#0c,#14,#18
	db #24,#0c,#14,#f8,#25,#09,#11,#2a
	db #27,#07,#0c,#d2,#27,#06,#09,#3e
	db #28,#04,#06,#6e,#28,#03,#03,#ff
	db #00,#ff
;org #12f2
;ld a,(#4f0f)
;cp #01
;ld a,b
;push af
;call z,#4fb2	; init
;pop af
;call #5065	; play

.game_name
	db "Lotus Esprit Turbo Challenge",0
.game_year
	db "1990",0
.game_publisher
	db "Gremlin Graphics",0
.music_author
	db "Ben Daglish",0
.music_comment
	db "",0
	
	read "music_end_v1_0.asm"
